package com.yanqu.road.dataHelper.repair.mgr;

import java.util.List;
import java.util.Map;

/**
 * @Author wpj
 * @Date 2020/8/15
 */
public class RepairMainTaskMgr extends BaseRepairMgr{

    private static Map<Integer, Integer> taskRepairMap;


    private static List<List<Integer>> passRepairList;

    public RepairMainTaskMgr() {
        init();
    }

    public static Map<Integer, Integer> getTaskRepairMap() {
        return taskRepairMap;
    }

    public static void setTaskRepairMap(Map<Integer, Integer> taskRepairMap) {
        RepairMainTaskMgr.taskRepairMap = taskRepairMap;
    }

    public static List<List<Integer>> getPassRepairList() {
        return passRepairList;
    }

    public static void setPassRepairList(List<List<Integer>> passRepairList) {
        RepairMainTaskMgr.passRepairList = passRepairList;
    }

    @Override
    public void init() {
        /*taskRepairMap = new ConcurrentHashMap<>();
        List<String> stringList = FileUtil.getStringListFromFile(DbScript.CONFIG_DIR + "taskSrc");
        for (String p : stringList) {
            List<Integer> l = StringUtils.stringToIntegerList(p, "-");
            taskRepairMap.put(l.get(0), l.get(1) - 1);
        }

        passRepairList = new ArrayList<>();
        List<String> passStringList = FileUtil.getStringListFromFile(DbScript.CONFIG_DIR + "passSrc");
        for (String p : passStringList) {
            List<Integer> l = StringUtils.stringToIntegerList(p, "-");
            passRepairList.add(l);
        }*/
    }

}
